package xiangMu.auto.auto02;

public class RentHistory {
    private String type;        //车的类型(轿车或客车)
    private String brand;        //车的品牌
    private String series;       //车的型号(系列)
    private String licencePlate;
    private int days;
    private double sumRent; //车辆租赁总费用

    public RentHistory() {  //无参构造方法
    }

    public RentHistory(String type, String brand, String series, String licencePlate, int days, double sumRent) {
        this.type = type;
        this.brand = brand;
        this.series = series;
        this.licencePlate = licencePlate;
        this.days = days;
        this.sumRent = sumRent;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public String getLicencePlate() {
        return licencePlate;
    }

    public void setLicencePlate(String licencePlate) {
        this.licencePlate = licencePlate;
    }

    public int getDays() {
        return days;
    }

    public void setDays(int days) {
        this.days = days;
    }

    public double getSumRent() {
        return sumRent;
    }

    public void setSumRent(double sumRent) {
        this.sumRent = sumRent;
    }

    @Override
    public String toString() {
        return type + "  " + brand + series + "，车牌:" + licencePlate + "，租赁天数:" + days + "天，租赁费用:¥" + sumRent + "元";
    }
}
